package com.yongcheon.sms_manager.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

/**
 * Created by yongcheon on 2014-12-10.
 */
public class SpamDBManager {
    public static SQLiteDatabase writableDB;

    public static SQLiteDatabase getDatabase(Context context){
        if(writableDB == null) {
            SpamDBHelper dbHelper = new SpamDBHelper(context);
            writableDB = dbHelper.getReadableDatabase();
        }
        return writableDB;
    }
}
